package com.hxht.storage.server.bean;


/**
 * 计划录像模板<br/>
 * 表示星期一到星期天， 每天的计划录像时段<br/>
 * 每天 包含8个TimePeriodBean时间片段
 * 
 * @author Administrator
 * 
 */
public class PlanRecordWeekTemplateBean {

	/** 星期模板 */
	private PlanRecordDayTemplateBean[] weekTemplate = new PlanRecordDayTemplateBean[7];

	/** 模板名字 */
	private String templateName;
	
	/** template唯一标识 */
	private String templateUUID;
	
	/** 是否允许编辑 */
	private boolean editable;
	
	public PlanRecordWeekTemplateBean() {

	}

	public boolean isEditable() {
		return editable;
	}

	public void setEditable(boolean isEditable) {
		this.editable = isEditable;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}


	/**
	 * 添加天模板
	 * @param weekIndex 取值1~7，代表 星期一~星期日
	 * @param dayTemplate
	 */
	public void addTemplate(int weekIndex, PlanRecordDayTemplateBean dayTemplate) {
		
		if (weekIndex < 1 || weekIndex >7)
			return;
		weekTemplate[weekIndex - 1] = dayTemplate;
	}




	public PlanRecordDayTemplateBean[] getWeekTemplate() {
		return weekTemplate;
	}

	public void setWeekTemplate(PlanRecordDayTemplateBean[] weekTemplate) {
		this.weekTemplate = weekTemplate;
	}

	public String getTemplateUUID() {
		return templateUUID;
	}

	public void setTemplateUUID(String templateUUID) {
		this.templateUUID = templateUUID;
	}

}
